package com.laolei.test.api;

import org.springframework.web.bind.annotation.RequestParam;

import com.laolei.core.cache.MethodCache;
import com.laolei.core.rest.annotation.RestClient;
import com.laolei.core.rest.annotation.RestClient.I;
import com.laolei.test.api.model.YouDaoBasic;
import com.laolei.test.api.model.YoudaoRelust;

@RestClient(serverid="youdao",version="1.1",manuallyprocessed=I.NO,path="/openapi.do")
public interface YoudaoApi2 {
	
	@RestClient(unpack=I.NO,cache=I.YES)
	YoudaoRelust<YouDaoBasic> fanyi (@RequestParam("q") String query,@RequestParam("keyfrom") String keyfrom,@RequestParam("key") String key,@RequestParam("type") String type,@RequestParam("doctype") String doctype);

	@RestClient( packClass=YoudaoRelust.class,cache=I.YES)
	YouDaoBasic fanyi1(@RequestParam("q") String query,@RequestParam("keyfrom") String keyfrom,@RequestParam("key") String key,@RequestParam("type") String type,@RequestParam("doctype") String doctype);
}